package com.yingside.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yingside.system.model.Role;
import com.yingside.system.model.RoleMenu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yingside
 * @since 2020-12-30
 */
@Repository
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {
    @Select("select menu_id from role_menu where role_id = #{roleId}")
    public Integer[] getMenusByRoleId(@Param("roleId") Integer roleId);
}
